package com.fqgj.xjd.user.client.enums;

/**
 * @author poyangchen
 */

public enum AuthStatusEnum {

    AUTH_INIT(0, "初始状态"),
    AUTH_SUCCESS(1, "认证成功"),
    AUTH_FAIL(2, "认证失败");


    private Integer status;
    private String desc;

    AuthStatusEnum(Integer status, String desc) {
        this.status = status;
        this.desc = desc;
    }

    public Integer getStatus() {
        return status;
    }

    public AuthStatusEnum setStatus(Integer status) {
        this.status = status;
        return this;
    }

    public String getDesc() {

        return desc;
    }

    public AuthStatusEnum setDesc(String desc) {
        this.desc = desc;
        return this;
    }

    public static String getDesc(Integer status) {
        String desc = "";
        for (AuthStatusEnum enums : AuthStatusEnum.values()) {
            if (enums.getStatus().equals(status)) {
                desc = enums.getDesc();
                break;
            }
        }

        return desc;
    }

}
